package com.aaa.service.impl;

import com.aaa.dao.TestInsertDao;
import com.aaa.service.TestInsertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * @author ：Lim
 * @date ：Created in 2022/7/4 20:05
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class TestInsertServiceImpl implements TestInsertService {
    @Autowired
    private TestInsertDao testInsertDao;
    @Override
    public boolean testInsert(List<Map> list) {
        Integer i=null;
        for (Map<String,Object> map:list){
            i=testInsertDao.insertFPATest(map);
        }
        if(i>0&&i!= null){
            return true;
        }
        return false;
    }

    @Override
    public boolean testInsertSaS(List<Map> list) {
        Integer i=null;
        for (Map<String,Object> map:list){
            i=testInsertDao.insertSaSTest(map);
        }
        if(i>0&&i!= null){
            return true;
        }
        return false;
    }

    @Override
    public boolean testInsertSdS(List<Map> list) {
        Integer i=null;
        for (Map<String,Object> map:list){
            i=testInsertDao.insertSdSTest(map);
        }
        if(i>0&&i!= null){
            return true;
        }
        return false;
    }


}